package com.cyzy.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.cyzy.dto.ResponseDto;
import com.cyzy.pojo.Driver;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface DriverService extends IService<Driver> {
    Map<String, Object> login(String acc, String password);

    ResponseDto register(Driver driver);

    int selectDriverType(int driverId);

    //重置密码
    void forgotPassword(long driverId,String password);

    //获取短信验证码
    String getPhoneCode(String phone) throws Exception;

    //系统自动派单
    String automaticOrder(Long orderId);

    //司机下线
    void Offline(Driver driver);

    //司机上线
    void upline(Driver driver);
    //查询司机信息
    Driver getDriverByOrderId(@Param("orderId") String orderId);
}
